package com.refuel.enumeration;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * @author zhanghao
 * @description 礼券状态枚举
 * @date 2024/5/16 22:45
 **/
@Schema(description = "礼券状态枚举")
public enum GiftStatus {

    /**
     * 初始状态
     */
    @Schema(description = "待核销")
    WAIT_EXCHANGE("WAIT_EXCHANGE", "待核销"),

    /**
     * 付款成功
     */
    @Schema(description = "已核销")
    EXCHANGE_OK("EXCHANGE_OK", "已核销"),

    /**
     * 已退款
     */
    @Schema(description = "已退款")
    REFUNDED("REFUNDED", "已退款"),

    /**
     * 已过期
     */
    @Schema(description = "已过期")
    EXPIRED("EXPIRED", "已过期"),
    ;


    /**
     * 名称
     */
    private String name;

    /**
     * 描述
     */
    private String desc;

    GiftStatus(String name, String desc) {
        this.name = name;
        this.desc = desc;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
